<?php

namespace app\admin\controller\setting;

use app\admin\controller\AdminController;
use app\admin\service\setting\NoticeLogService;
use think\response\Json;

class NoticeLog extends AdminController
{
    /**
     * 消息日志列表
     * @return Json
     */
    public function lists()
    {
        return $this->data(NoticeLogService::getList());
    }

    /**
     * 消息日志详情
     * @return Json
     */
    public function detail()
    {
        $params = $this->getData(['id']);
        $result = NoticeLogService::detail($params);
        return $this->data($result);
    }
}